
<template>
    <div>
        <el-form :inline="true" :model="formInline" class="demo-form-inline" style="border-bottom:1px solid #ccc;">
            <!--计划大类-->
            <el-form-item :label="nowLangue.planClass" class="selectMB10">
                <el-select size="mini" clearable v-model="formInline.status" :placeholder="nowLangue.pleaseSelect">
                    <el-option v-for="(status,index) in statusList" :key="index" :label="status.label" :value="status.value"></el-option>
                </el-select>
            </el-form-item>
            <!--备件小类-->
            <el-form-item :label="nowLangue.spareClass" class="selectMB10">
                <el-select size="mini" clearable v-model="formInline.status" :placeholder="nowLangue.pleaseSelect">
                    <el-option v-for="(status,index) in statusList" :key="index" :label="status.label" :value="status.value"></el-option>
                </el-select>
            </el-form-item>
            <!-- 备件编码-->
            <el-form-item :label="nowLangue.spareCode" class="selectMB10">
                <el-input size="mini" v-model="formInline.materialName" :placeholder="nowLangue.pleaseImport+nowLangue.spareCode"></el-input>
            </el-form-item>
            <!--紧急程度-->
            <el-form-item :label="nowLangue.urgentDegree" class="selectMB10">
                <el-select size="mini" clearable v-model="formInline.status" :placeholder="nowLangue.pleaseSelect">
                    <el-option v-for="(status,index) in statusList" :key="index" :label="status.label" :value="status.value"></el-option>
                </el-select>
            </el-form-item>
            <!--状态-->
            <el-form-item :label="nowLangue.status" class="selectMB10">
                <el-select size="mini" clearable v-model="formInline.status" :placeholder="nowLangue.pleaseSelect">
                    <el-option v-for="(status,index) in statusList" :key="index" :label="status.label" :value="status.value"></el-option>
                </el-select>
            </el-form-item>
            <!--创建时间-->
            <div class="dayChose">
                <el-form-item :label="nowLangue.createTime" class="selectMB10" >
                    <el-date-picker type="date" :editable="false" v-model="formInline.startCreateTime" clearable :placeholder="nowLangue.pleaseSelect" @change="selectedCreateTimeBegin"></el-date-picker>
                </el-form-item>
                <span v-text="nowLangue.to"></span>
                <el-form-item  class="selectMB10" >
                    <el-date-picker clearable :editable="false" v-model="formInline.endCreateTime"  type="date" :placeholder="nowLangue.pleaseSelect" @change="selectedCreateTimeEnd"></el-date-picker>
                </el-form-item>
            </div>
            <el-form-item class="selectMB10">
                <el-button class="bolder outsideBtnBS selectAll" :disabled="selectDisabled" size="mini" type="danger" @click="queryClick()" v-text="nowLangue.query"></el-button>
            </el-form-item>
        </el-form>
        <!--批量质量问题列表-->
        <label class="default-label" v-text="nowLangue.BatQuaProblemDetail"></label>
        <el-button class="bolder outsideBtnBS" :disabled="addDisabled" size="mini" type="danger" @click="createApply" v-text="nowLangue.createApply"></el-button>
        <el-button class="bolder outsideBtnBS" :disabled="addDisabled" size="mini" type="danger" @click="createEarlyWarn" v-text="nowLangue.createEarlyWarn"></el-button>
        <el-table :data="batQuaProblemData" border style="width: 100%;" v-loading.body="loading" :element-loading-text="nowLangue.loadDesperately">
            <el-table-column type="index" header-align="center" align="center" :label="nowLangue.sequence" width="40"></el-table-column>
            <!--操作-->
            <el-table-column :label="nowLangue.operate" header-align="center" align="center" width="230">
                <template scope="scope">
                    <button class="operationItem bolder" :disabled="forbiddenDisabled" v-if="scope.row.status" @click="handleStatus(scope.$index,scope.row)" v-text="nowLangue.forbidden"></button>
                    <button class="operationItem bolder" :disabled="enableDisabled" v-else @click="handleStatus(scope.$index,scope.row)" v-text="nowLangue.enable"></button>
                    <button class="operationItem bolder" :disabled="scope.row.status" v-text="nowLangue.updateApply"></button>
                    <button class="operationItem bolder" :disabled="scope.row.status" v-text="nowLangue.updateEarlyWarn"></button>
                    <button class="operationItem bolder" v-text="nowLangue.response" @click="response"></button>
                    <button class="operationItem bolder" v-text="nowLangue.check" @click="check"></button>
                </template>
            </el-table-column>
            <!--紧急程度-->
            <el-table-column prop="" :label="nowLangue.urgentDegree" header-align="center" show-overflow-tooltip></el-table-column>
            <!--备件编码-->
            <el-table-column prop="" :label="nowLangue.spareCode" header-align="center" show-overflow-tooltip></el-table-column>
            <!--备件名称-->
            <el-table-column prop="" :label="nowLangue.spareName" header-align="center"  show-overflow-tooltip></el-table-column>
            <!--备件小类-->
            <el-table-column prop="" :label="nowLangue.spareClass" header-align="center"  show-overflow-tooltip></el-table-column>
            <!--计划大类-->
            <el-table-column prop="" :label="nowLangue.planClass" header-align="center" show-overflow-tooltip></el-table-column>
            <!--影响数量-->
            <el-table-column prop="" :label="nowLangue.influenceNum" header-align="center" show-overflow-tooltip></el-table-column>
            <!--条码范围-->
            <el-table-column prop="" :label="nowLangue.barCodeLimit" header-align="center" show-overflow-tooltip></el-table-column>
            <!--主机型号-->
            <el-table-column prop="" :label="nowLangue.hostCode" header-align="center" show-overflow-tooltip></el-table-column>
            <!--生产日期-->
            <el-table-column prop="" :label="nowLangue.liveData" header-align="center" show-overflow-tooltip></el-table-column>
            <!--质量问题说明-->
            <el-table-column prop="" :label="nowLangue.qualityProblemDescribe" header-align="center" show-overflow-tooltip></el-table-column>
            <!--备件处理建议-->
            <el-table-column prop="" :label="nowLangue.spareDealProposal" header-align="center" show-overflow-tooltip></el-table-column>
            <!--解决方案说明-->
            <el-table-column prop="" :label="nowLangue.solutionExplanation" header-align="center" show-overflow-tooltip></el-table-column>
            <!--方案附件-->
            <el-table-column prop="" :label="nowLangue.projectAnnex" header-align="center" show-overflow-tooltip></el-table-column>
            <!--状态-->
            <el-table-column prop="" :label="nowLangue.status" header-align="center" show-overflow-tooltip></el-table-column>
            <!--创建人员-->
            <el-table-column prop="" :label="nowLangue.creator" header-align="center" show-overflow-tooltip></el-table-column>
            <!--创建时间-->
            <el-table-column prop="" :label="nowLangue.createTime" header-align="center" show-overflow-tooltip></el-table-column>
            <!--响应人员-->
            <el-table-column prop="" :label="nowLangue.responser" header-align="center" show-overflow-tooltip></el-table-column>
            <!--响应时间-->
            <el-table-column prop="" :label="nowLangue.responseTime" header-align="center" show-overflow-tooltip></el-table-column>
            <!--响应时长-->
            <el-table-column prop="" :label="nowLangue.responseHours" header-align="center" show-overflow-tooltip></el-table-column>
        </el-table>
        <el-pagination v-if="isPaging"  @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page.sync="currentPage3" :current-page="pageIndex"  :page-size="pageSize" layout="total, sizes, prev, pager, next, jumper" :page-count="totalPage" :total="totalNumber"></el-pagination>
        <!--&lt;!&ndash;新建备件DOA&ndash;&gt;
        <el-dialog :title="nowLangue.addSpareDOA" :visible.sync="dialogAddVisible" :lock-scroll=false>
            <el-form :inline="true" :model="addSpareDOAForm" class="demo-form-inline label-minW95" style="border-bottom:1px solid #ccc;" >
                &lt;!&ndash;创建人员&ndash;&gt;
                <el-form-item :label="nowLangue.creator">
                    <el-input v-model="addSpareDOAForm.code" :placeholder="nowLangue.pleaseImport"></el-input>
                </el-form-item>
                &lt;!&ndash;创建时间&ndash;&gt;
                <el-form-item :label="nowLangue.createTime">
                    <el-input v-model="addSpareDOAForm.code" :placeholder="nowLangue.pleaseImport"></el-input>
                </el-form-item>
                &lt;!&ndash;备件编码&ndash;&gt;
                <el-form-item :label="nowLangue.spareCode">
                    <el-input v-model="addSpareDOAForm.code" class="disabledClick" disabled icon="search" :placeholder="nowLangue.pleaseSelect"></el-input>
                </el-form-item>
                &lt;!&ndash;备件名称&ndash;&gt;
                <p>
                    <el-form-item :label="nowLangue.spareName" class="selectMB10 default-flex">
                        <el-input v-model="addSpareDOAForm.code" class="disabledClick" disabled></el-input>
                    </el-form-item>
                </p>
                &lt;!&ndash;备件小类&ndash;&gt;
                <el-form-item :label="nowLangue.spareClass">
                    <el-input v-model="addSpareDOAForm.code" :placeholder="nowLangue.pleaseImport"></el-input>
                </el-form-item>
                &lt;!&ndash;计划大类&ndash;&gt;
                <el-form-item :label="nowLangue.planClass">
                    <el-input v-model="addSpareDOAForm.code" :placeholder="nowLangue.pleaseImport"></el-input>
                </el-form-item>
                &lt;!&ndash;产品线&ndash;&gt;
                <el-form-item :label="nowLangue.productLine">
                    <el-input v-model="addSpareDOAForm.code" :placeholder="nowLangue.pleaseImport"></el-input>
                </el-form-item>
                &lt;!&ndash;故障代码&ndash;&gt;
                <el-form-item :label="nowLangue.faultCode">
                    <el-input v-model="addSpareDOAForm.code" class="disabledClick" disabled icon="search" :placeholder="nowLangue.pleaseSelect"></el-input>
                </el-form-item>
                &lt;!&ndash;故障名称&ndash;&gt;
                <p>
                    <el-form-item :label="nowLangue.faultName" class="selectMB10 default-flex">
                        <el-input v-model="addSpareDOAForm.code" class="disabledClick" disabled></el-input>
                    </el-form-item>
                </p>
                &lt;!&ndash;说明&ndash;&gt;
                <p>
                    <el-form-item :label="nowLangue.describe" class="selectMB10 default-flex">
                        <el-input v-model="addSpareDOAForm.code"></el-input>
                    </el-form-item>
                </p>
            </el-form>
            &lt;!&ndash;DOA复测步骤明细&ndash;&gt;
            <label class="default-label" v-text="nowLangue.spareDoaRetestDetail"></label>
            <el-button class="bolder outsideBtnBS" size="mini" type="danger" v-text="nowLangue.create">&lt;!&ndash;新增&ndash;&gt;</el-button>
            <el-table :data="DOAretestData" border style="width: 100%;">
                <el-table-column type="index" header-align="center" align="center" :label="nowLangue.sequence" width="40"></el-table-column>
                &lt;!&ndash;操作&ndash;&gt;
                <el-table-column :label="nowLangue.operate" header-align="center" align="center" width="150">
                    <template scope="scope">
                        <button class="operationItem bolder" v-text="nowLangue.delete"></button>
                        <button class="operationItem bolder" v-text="nowLangue.update"></button>
                        <button class="bolder operationItem" v-text="nowLangue.upMove">&lt;!&ndash;上移&ndash;&gt;</button>
                        <button class="bolder operationItem" v-text="nowLangue.downMove">&lt;!&ndash;下移&ndash;&gt;</button>
                    </template>
                </el-table-column>
                &lt;!&ndash;复测步骤编号&ndash;&gt;
                <el-table-column prop="" :label="nowLangue.retestStepCode" header-align="center" show-overflow-tooltip width="180">
                    <template scope="scope">
                        <el-input size="mini" :placeholder="nowLangue.pleaseImport"></el-input>
                    </template>
                </el-table-column>
                &lt;!&ndash;复测步骤标题&ndash;&gt;
                <el-table-column prop="" :label="nowLangue.retestStepTitle" header-align="center" show-overflow-tooltip width="180">
                    <template scope="scope">
                        <el-input size="mini" :placeholder="nowLangue.pleaseImport"></el-input>
                    </template>
                </el-table-column>
                &lt;!&ndash;复测步骤说明&ndash;&gt;
                <el-table-column prop="" :label="nowLangue.retestStepDescribe" header-align="center" show-overflow-tooltip width="180">
                    <template scope="scope">
                        <el-input size="mini" :placeholder="nowLangue.pleaseImport"></el-input>
                    </template>
                </el-table-column>
            </el-table>
            <div slot="footer" class="dialog-footer">
                <el-button class="bolder outsideBtnBS" size="mini" type="danger" v-text="nowLangue.save"></el-button>
                <el-button class="bolder outsideBtnBS" size="mini" type="danger" v-text="nowLangue.confirm"></el-button>
            </div>
        </el-dialog>
        &lt;!&ndash;修改备件DOA&ndash;&gt;
        <el-dialog :title="nowLangue.updateSpareDOA" :visible.sync="dialogUpdateVisible" :lock-scroll=false>
            <el-form :inline="true" :model="updateSpareDOAForm" class="demo-form-inline label-minW95" style="border-bottom:1px solid #ccc;" >
                &lt;!&ndash;创建人员&ndash;&gt;
                <el-form-item :label="nowLangue.creator">
                    <el-input v-model="updateSpareDOAForm.code" :placeholder="nowLangue.pleaseImport"></el-input>
                </el-form-item>
                &lt;!&ndash;创建时间&ndash;&gt;
                <el-form-item :label="nowLangue.createTime">
                    <el-input v-model="updateSpareDOAForm.code" :placeholder="nowLangue.pleaseImport"></el-input>
                </el-form-item>
                &lt;!&ndash;备件编码&ndash;&gt;
                <el-form-item :label="nowLangue.spareCode">
                    <el-input v-model="updateSpareDOAForm.code" class="disabledClick" disabled icon="search" :placeholder="nowLangue.pleaseSelect"></el-input>
                </el-form-item>
                &lt;!&ndash;备件名称&ndash;&gt;
                <p>
                    <el-form-item :label="nowLangue.spareName" class="selectMB10 default-flex">
                        <el-input v-model="updateSpareDOAForm.code" class="disabledClick" disabled></el-input>
                    </el-form-item>
                </p>
                &lt;!&ndash;备件小类&ndash;&gt;
                <el-form-item :label="nowLangue.spareClass">
                    <el-input v-model="updateSpareDOAForm.code" :placeholder="nowLangue.pleaseImport"></el-input>
                </el-form-item>
                &lt;!&ndash;计划大类&ndash;&gt;
                <el-form-item :label="nowLangue.planClass">
                    <el-input v-model="updateSpareDOAForm.code" :placeholder="nowLangue.pleaseImport"></el-input>
                </el-form-item>
                &lt;!&ndash;产品线&ndash;&gt;
                <el-form-item :label="nowLangue.productLine">
                    <el-input v-model="updateSpareDOAForm.code" :placeholder="nowLangue.pleaseImport"></el-input>
                </el-form-item>
                &lt;!&ndash;故障代码&ndash;&gt;
                <el-form-item :label="nowLangue.faultCode">
                    <el-input v-model="updateSpareDOAForm.code" class="disabledClick" disabled icon="search" :placeholder="nowLangue.pleaseSelect"></el-input>
                </el-form-item>
                &lt;!&ndash;故障名称&ndash;&gt;
                <p>
                    <el-form-item :label="nowLangue.faultName" class="selectMB10 default-flex">
                        <el-input v-model="updateSpareDOAForm.code" class="disabledClick" disabled></el-input>
                    </el-form-item>
                </p>
                &lt;!&ndash;说明&ndash;&gt;
                <p>
                    <el-form-item :label="nowLangue.describe" class="selectMB10 default-flex">
                        <el-input v-model="updateSpareDOAForm.code"></el-input>
                    </el-form-item>
                </p>
            </el-form>
            &lt;!&ndash;DOA复测步骤明细&ndash;&gt;
            <label class="default-label" v-text="nowLangue.spareDoaRetestDetail"></label>
            <el-button class="bolder outsideBtnBS" size="mini" type="danger" v-text="nowLangue.create">&lt;!&ndash;新增&ndash;&gt;</el-button>
            <el-button class="bolder outsideBtnBS" size="mini" type="danger" v-text="nowLangue.upMove">&lt;!&ndash;上移&ndash;&gt;</el-button>
            <el-button class="bolder outsideBtnBS" size="mini" type="danger" v-text="nowLangue.downMove">&lt;!&ndash;下移&ndash;&gt;</el-button>
            <el-table :data="DOAretestUpdateData" border style="width: 100%;">
                <el-table-column type="index" header-align="center" align="center" :label="nowLangue.sequence" width="40"></el-table-column>
                &lt;!&ndash;操作&ndash;&gt;
                <el-table-column :label="nowLangue.operate" header-align="center" align="center" width="80">
                    <template scope="scope">
                        <button class="operationItem bolder" v-text="nowLangue.delete"></button>
                        <button class="operationItem bolder" v-text="nowLangue.update"></button>
                    </template>
                </el-table-column>
                &lt;!&ndash;复测步骤编号&ndash;&gt;
                <el-table-column prop="" :label="nowLangue.retestStepCode" header-align="center" show-overflow-tooltip width="180">
                    <template scope="scope">
                        <el-input size="mini" :placeholder="nowLangue.pleaseImport"></el-input>
                    </template>
                </el-table-column>
                &lt;!&ndash;复测步骤标题&ndash;&gt;
                <el-table-column prop="" :label="nowLangue.retestStepTitle" header-align="center" show-overflow-tooltip width="180">
                    <template scope="scope">
                        <el-input size="mini" :placeholder="nowLangue.pleaseImport"></el-input>
                    </template>
                </el-table-column>
                &lt;!&ndash;复测步骤说明&ndash;&gt;
                <el-table-column prop="" :label="nowLangue.retestStepDescribe" header-align="center" show-overflow-tooltip width="180">
                    <template scope="scope">
                        <el-input size="mini" :placeholder="nowLangue.pleaseImport"></el-input>
                    </template>
                </el-table-column>
            </el-table>
            <div slot="footer" class="dialog-footer">
                <el-button class="bolder outsideBtnBS" size="mini" type="danger" v-text="nowLangue.save"></el-button>
                <el-button class="bolder outsideBtnBS" size="mini" type="danger" v-text="nowLangue.confirm"></el-button>
            </div>
        </el-dialog>
        &lt;!&ndash;查看弹窗&ndash;&gt;
        <el-dialog :title="nowLangue.seeSpareDOA" :visible.sync="dialogSeeVisible" :lock-scroll=false>
            <el-form :inline="true" :model="seeSpareDOAForm" class="demo-form-inline label-minW95" style="border-bottom:1px solid #ccc;" >
                &lt;!&ndash;创建人员&ndash;&gt;
                <el-form-item :label="nowLangue.creator">
                    <el-input v-model="seeSpareDOAForm.code" disabled></el-input>
                </el-form-item>
                &lt;!&ndash;创建时间&ndash;&gt;
                <el-form-item :label="nowLangue.createTime">
                    <el-input v-model="seeSpareDOAForm.code" disabled></el-input>
                </el-form-item>
                &lt;!&ndash;备件编码&ndash;&gt;
                <el-form-item :label="nowLangue.spareCode">
                    <el-input v-model="seeSpareDOAForm.code" disabled></el-input>
                </el-form-item>
                &lt;!&ndash;备件名称&ndash;&gt;
                <el-form-item :label="nowLangue.spareName">
                    <el-input v-model="seeSpareDOAForm.code" disabled></el-input>
                </el-form-item>
                &lt;!&ndash;备件小类&ndash;&gt;
                <el-form-item :label="nowLangue.spareClass">
                    <el-input v-model="seeSpareDOAForm.code" disabled></el-input>
                </el-form-item>
                &lt;!&ndash;计划大类&ndash;&gt;
                <el-form-item :label="nowLangue.planClass">
                    <el-input v-model="seeSpareDOAForm.code" disabled></el-input>
                </el-form-item>
                &lt;!&ndash;产品线&ndash;&gt;
                <el-form-item :label="nowLangue.productLine">
                    <el-input v-model="seeSpareDOAForm.code" disabled></el-input>
                </el-form-item>
                &lt;!&ndash;故障代码&ndash;&gt;
                <el-form-item :label="nowLangue.faultCode">
                    <el-input v-model="seeSpareDOAForm.code" disabled></el-input>
                </el-form-item>
                &lt;!&ndash;故障名称&ndash;&gt;
                <el-form-item :label="nowLangue.faultName">
                    <el-input v-model="seeSpareDOAForm.code" disabled></el-input>
                </el-form-item>
                &lt;!&ndash;说明&ndash;&gt;
                <p>
                    <el-form-item :label="nowLangue.describe" class="selectMB10 default-flex">
                        <el-input v-model="seeSpareDOAForm.code" disabled></el-input>
                    </el-form-item>
                </p>
            </el-form>
            &lt;!&ndash;DOA复测步骤明细&ndash;&gt;
            <label class="default-label" v-text="nowLangue.spareDoaRetestDetail"></label>
           <el-table :data="DOAretestSeeData" border style="width: 100%;">
                <el-table-column type="index" header-align="center" align="center" :label="nowLangue.sequence" width="40"></el-table-column>
                &lt;!&ndash;复测步骤编号&ndash;&gt;
                <el-table-column prop="" :label="nowLangue.retestStepCode" header-align="center" show-overflow-tooltip></el-table-column>
                &lt;!&ndash;复测步骤标题&ndash;&gt;
                <el-table-column prop="" :label="nowLangue.retestStepTitle" header-align="center" show-overflow-tooltip></el-table-column>
                &lt;!&ndash;复测步骤说明&ndash;&gt;
                <el-table-column prop="" :label="nowLangue.retestStepDescribe" header-align="center" show-overflow-tooltip></el-table-column>
            </el-table>
            <div slot="footer" class="dialog-footer">
                <el-button class="bolder outsideBtnBS" size="mini" type="danger" v-text="nowLangue.return"></el-button>
            </div>
        </el-dialog>-->
    </div>
</template>
<script>
    export default {
        data() {
            return {
                nowLangue:{},
                languageScoped:{
                    zh:{
                        "pleaseSelect":"请选择",
                        "pleaseImport":"请输入",
                        "planClass":"计划大类",
                        "spareClass":"备件小类",
                        "creator":"创建人员",
                        "createTime":"创建时间",
                        "spareCode":"备件编码",
                        "spareName":"备件名称",
                        "to":"至",
                        "query":"查询",
                        "loadDesperately":"拼命加载中",
                        "sequence":"序",
                        "operate":"操作",
                        "status":"状态",
                        "urgentDegree":"紧急程度",
                        "BatQuaProblemDetail":"批量质量问题列表",
                        "createApply":"新增申请",
                        "createEarlyWarn":"新增预警",
                        "updateApply":"修改申请",
                        "updateEarlyWarn":"修改预警",
                        "response":"响应",
                        "responser":"响应人员",
                        "responseTime":"响应时间",
                        "responseHours":"响应时长",
                        "forbidden":"禁用",
                        "enable":"启用",
                        "check":"查看",
                        "influenceNum":"影响数量",
                        "barCodeLimit":"条码范围",
                        "hostCode":"主机型号",
                        "liveData":"生产日期",
                        "qualityProblemDescribe":"质量问题说明",
                        "spareDealProposal":"备件处理建议",
                        "solutionExplanation":"解决方案说明",
                        "projectAnnex":"方案附件",

                    },
                    en:{
                        "pleaseSelect":"pleaseSelect",
                        "pleaseImport":"pleaseImport",
                        "spareCode":"spareCode",
                        "spareName":"spareName",
                        "to":"to",
                        "query":"query",
                        "loadDesperately":"loadDesperately",
                        "sequence":"sequence",
                        "operate":"operate",
                        "planClass":"planClass",
                        "spareClass":"spareClass",
                        "creator":"creator",
                        "createTime":"createTime",
                        "forbidden":"forbidden",
                        "enable":"enable",
                        "check":"check",
                        "status":"status",
                        "urgentDegree":"urgentDegree",
                        "BatQuaProblemDetail":"BatQuaProblemDetail",
                        "createApply":"createApply",
                        "createEarlyWarn":"createEarlyWarn",
                        "updateApply":"updateApply",
                        "updateEarlyWarn":"updateEarlyWarn",
                        "response":"response",
                        "responser":"responser",
                        "responseTime":"responseTime",
                        "responseHours":"responseHours",
                        "influenceNum":"influenceNum",
                        "barCodeLimit":"barCodeLimit",
                        "hostCode":"hostCode",
                        "liveData":"liveData",
                        "qualityProblemDescribe":"qualityProblemDescribe",
                        "spareDealProposal":"spareDealProposal",
                        "solutionExplanation":"solutionExplanation",
                        "projectAnnex":"projectAnnex",
                    }
                },
                // 查询表单
                formInline:{

                },
                batQuaProblemData:[{
                    name:"aaa"
                }],
                /*新增*/
                dialogAddVisible:false,//新建弹窗
                addSpareDOAForm:{},//新建查询表单
                DOAretestData:[{name:"aaa"}],//DOA复测

                /*修改*/
                dialogUpdateVisible:false,//修改弹窗
                updateSpareDOAForm:{},//查询表单
                DOAretestUpdateData:[{name:"aaa"}],//DOA复测

                /*查看*/
                dialogSeeVisible:false,//修改弹窗
                seeSpareDOAForm:{},//查询表单
                DOAretestSeeData:[{name:"aaa"}],//DOA复测

                //禁用按钮
                selectDisabled:false,
                addDisabled:false,
                enableDisabled:false,
                forbiddenDisabled:false,

                loading:false,
                isPaging:true,    //是否显示分页
                pageIndex:1,    //当前页（必传）
                pageSize :10,   //每页多少条
                currentPage:1,    //当前显示3页
                currentPage3:3,
                totalNumber: 1,     //总条数
                totalPage:1    //总页数
            };
        },
        created:function(){
            this.languageType=="zh"?this.nowLangue=this.languageScoped.zh:this.nowLangue=this.languageScoped.en;
        },
        computed:{
            languageType(){
                return this.$store.state.languageType;
            }
        },
        watch:{
            languageType(){
                this.languageType=="zh"?this.nowLangue=this.languageScoped.zh:this.nowLangue=this.languageScoped.en;
            }
        },
        //进入页面立即运行此方法
        mounted: function () {
            var _this = this;
            _this.$store.commit('currentActive', 'RetestStep');
        },
        methods:{
            // 选择创建开始日期
            selectedCreateTimeBegin(val){

            },
            // 选择创建结束日期
            selectedCreateTimeEnd(val){

            },
            //查询列表
            queryClick(){
                /*var _this=this;
                 _this.loading=true;
                 var urlAddress="";
                 if(this.isClickBySelect){
                     urlAddress="projectSubstitute/queryMaterialByPage";
                 }else{
                     urlAddress="projectSubstitute/queryIncreasementMaterialByPage";
                 }
                 var tmp={
                     productLineId:_this.formInline.productLineId,
                     legalPersonCode:_this.formInline.legalPersonCode,
                     startCreateTime:_this.formInline.startCreateTime,
                     endCreateTime:_this.formInline.endCreateTime,
                     materialCode:_this.formInline.materialCode,
                     materialName:_this.formInline.materialName,
                     status:_this.formInline.status,
                     pageIndex:_this.pageIndex,
                     pageSize:_this.pageSize
                 };
                 $.ajax({
                     type: 'POST',
                     url: _this.metadata_service+urlAddress,
                     cache: false,
                     data:JSON.stringify(tmp),
                     dataType:'JSON',
                     contentType: "application/json;charset=utf-8",
                     success: function (data) {
                         if (data.success) {
                             _this.loading=false;
                             _this.isPaging=true;
                             _this.totalPage=data.data.totalPage;
                             _this.totalNumber=data.data.totalNumber;
                             _this.productData=data.data.dataList;
                         }else{
                             _this.loading=false;
                            _this.common.errorTip(data.errorMessage)
                         }
                     }
                 });*/
            },
            createEarlyWarn(){
              this.dialogAddVisible=true;
            },
            createApply(){
                this.dialogAddVisible=true;
            },
            update(){
                this.dialogUpdateVisible=true;
            },
            check(){
                this.dialogSeeVisible=true;
            },
            response(){

            }
        }
    }
</script>



